﻿using CommonManagement.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace CommonService.Host.EntityFrameworkCore
{
    /// <summary>
    /// 公共服务迁移数据上下文
    /// </summary>
    public class CommonServiceMigrationDbContext : AbpDbContext<CommonServiceMigrationDbContext>
    {
        public CommonServiceMigrationDbContext(
            DbContextOptions<CommonServiceMigrationDbContext> options)
            : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.ConfigureCommonManagement();
        }
    }
}